﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Randata.Helpers;

namespace Randata.DataResolvers.Implementation
{
    internal class ListDataResolver<T> : DataResolver<List<T>>
    {
        internal override List<T> Resolve()
        {
            List<T> list = new List<T>();
            
            for (int i = 0; i <= Rand.Instance.Next(1, 10); i++)
            {
                list.Add((T)DataProvider.Any(typeof(T)));
            }
            
            return list;
        }
    }

}
